package edu.tyut.ncp.service;

import edu.tyut.ncp.entity.FinaceUserDetails;
import edu.tyut.ncp.entity.Finance;
import edu.tyut.ncp.entity.Intention;
import edu.tyut.ncp.entity.Recommend;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface FinanceService {

    void add(Finance finance);

    List<Finance> selectByFinance(Finance finance);

    Finance selectByFinanceId(Integer id);

    void deleteByFinanceId(Integer id);

    void updateByFinance(Finance finance);

    List<Intention> selectIntentionByName(String name);

    void updateIntentionByName(Intention intention);

    void insertIntentionByName(Intention intention);

    void deleteIntentionByName(String name);

    List<Recommend> selectRecommend(String name);

    void AuthorizationtoUser(String name, String userName);

    FinaceUserDetails selectFinaceUser(String name, String bankId);

    boolean selectIfApply(String name);


    void addMulti(Finance finance);
}
